// Copyright Wilfried Woivre - http://blog.woivre.fr

using System.Linq;
using System.Data.Services.Providers;
using Demo.TableStorageDataServices.Web.Models;

namespace Demo.TableStorageDataServices.Web.Services
{
	public interface IDataSource
	{
		IQueryable< Response> Responses { get; } 
		IQueryable< Enigma> Enigmas { get; } 
		IQueryable< User> Users { get; } 
		IQueryable GetQueryable(ResourceSet set);
		
		object CreateResource(ResourceType resourceType);
		
		void AddResource(ResourceType resourceType, object resource);
		
		void DeleteResource(object resource);
		
		void SaveChanges();
	}
}

